//生产测试环境时，请将127.0.0.1改为后端地址
const baseUrl = 'http://127.0.0.1:9091'


export default {
    loginAuth: baseUrl + "/api/login",
    //生产测试环境时，请将127.0.0.1改为后端地址，server连接SSH地址
    ServerTerminalWs:  'ws://127.0.0.1:9091/api/node/ssh',
    //生产测试环境时，请将127.0.0.1改为后端地址，Pod连接SSH地址
    k8sTerminalWs: 'ws://127.0.0.1:8080/ws',
    //workflow
    k8sWorkflowCreate: baseUrl + '/api/k8s/workflow/create',
    k8sWorkflowDetail: baseUrl + '/api/k8s/workflow/detail',
    k8sWorkflowList: baseUrl + '/api/k8s/workflows',
    k8sWorkflowDel: baseUrl + '/api/k8s/workflow/del',
    //deployment
    k8sDeploymentList: baseUrl + '/api/k8s/deployments',
    k8sDeploymentDetail: baseUrl + '/api/k8s/deployment/detail',
    k8sDeploymentUpdate: baseUrl + '/api/k8s/deployment/update',
    k8sDeploymentScale: baseUrl + '/api/k8s/deployment/scale',
    k8sDeploymentRestart: baseUrl + '/api/k8s/deployment/restart',
    k8sDeploymentDel: baseUrl + '/api/k8s/deployment/del',
    k8sDeploymentCreate: baseUrl + '/api/k8s/deployment/create',
    k8sDeploymentNumNp: baseUrl + '/api/k8s/deployment/numns',
    //pod
    k8sPodList: baseUrl + '/api/k8s/pods',
    k8sPodDetail: baseUrl + '/api/k8s/pod/detail',
    k8sPodUpdate: baseUrl + '/api/k8s/pod/update',
    k8sPodDel: baseUrl + '/api/k8s/pod/del',
    k8sPodContainer: baseUrl + '/api/k8s/pod/container',
    k8sPodLog: baseUrl + '/api/k8s/pod/log',
    k8sPodNumNp: baseUrl + '/api/k8s/pod/numns',
    //daemonset
    k8sDaemonSetCreate: baseUrl + '/api/k8s/daemonset/create',
    k8sDaemonSetList: baseUrl + '/api/k8s/daemonsets',
    k8sDaemonSetDetail: baseUrl + '/api/k8s/daemonset/detail',
    k8sDaemonSetUpdate: baseUrl + '/api/k8s/daemonset/update',
    k8sDaemonSetDel: baseUrl + '/api/k8s/daemonset/del',
    //statefulset
    k8sStatefulSetCreate: baseUrl + '/api/k8s/statefulset/create',
    k8sStatefulSetList: baseUrl + '/api/k8s/statefulsets',
    k8sStatefulSetDetail: baseUrl + '/api/k8s/statefulset/detail',
    k8sStatefulSetUpdate: baseUrl + '/api/k8s/statefulset/update',
    k8sStatefulSetDel: baseUrl + '/api/k8s/statefulset/del',
    //service
    k8sServiceList: baseUrl + '/api/k8s/services',
    k8sServiceDetail: baseUrl + '/api/k8s/service/detail',
    k8sServiceUpdate: baseUrl + '/api/k8s/service/update',
    k8sServiceDel: baseUrl + '/api/k8s/service/del',
    k8sServiceCreate: baseUrl + '/api/k8s/service/create',
    //ingress
    k8sIngressList: baseUrl + '/api/k8s/ingresses',
    k8sIngressDetail: baseUrl + '/api/k8s/ingresses/detail',
    k8sIngressUpdate: baseUrl + '/api/k8s/ingresses/update',
    k8sIngressDel: baseUrl + '/api/k8s/ingresses/del',
    k8sIngressCreate: baseUrl + '/api/k8s/ingresses/create',
    //IngressClass
    k8sIngressClassList: baseUrl + '/api/k8s/ingressclass',
    //configmap
    k8sConfigMapCreate: baseUrl + '/api/k8s/configmap/create',
    k8sConfigMapList: baseUrl + '/api/k8s/configmaps',
    k8sConfigMapDetail: baseUrl + '/api/k8s/configmap/detail',
    k8sConfigMapUpdate: baseUrl + '/api/k8s/configmap/update',
    k8sConfigMapDel: baseUrl + '/api/k8s/configmap/del',
    //secret
    k8sSecretList: baseUrl + '/api/k8s/secrets',
    k8sSecretDetail: baseUrl + '/api/k8s/secret/detail',
    k8sSecretUpdate: baseUrl + '/api/k8s/secret/update',
    k8sSecretDel: baseUrl + '/api/k8s/secret/del',
    //node
    k8sNodeList: baseUrl + '/api/k8s/nodes',
    k8sNodeDetail: baseUrl + '/api/k8s/node/detail',
    //namespace
    k8sNamespaceList: baseUrl + '/api/k8s/namespaces',
    k8sNamespaceDetail: baseUrl + '/api/k8s/namespace/detail',
    k8sNamespaceDel: baseUrl + '/api/k8s/namespace/del',

    //StorageClasses
    k8sStorageClassesList: baseUrl +  "/api/k8s/storageclasses",

    //k8sList
    Createk8s: baseUrl + '/api/k8s/createK8s/create',
    Delk8spool: baseUrl + '/api/k8s/createK8s/del',
    k8sList: baseUrl + '/api/k8s/createK8s/list',
    k8sinit: baseUrl + '/api/k8s/createK8s/intpool',

    //k8s 安装/api/k8s/api/create-k8s
    Create_Deploy_Config: baseUrl + '/api/k8s/create_deploy_config',
    Update_Deploy_Config: baseUrl + '/api/k8s/update_deploy_config',
    Delete_Deploy_Config: baseUrl + '/api/k8s/delete_deploy_config',
    K8s_install_List: baseUrl + '/api/k8s/k8s_instaall_list',
    Ansible_init: baseUrl + '/api/k8s/ansible_init',
    GenerateAutomationScript_Install: baseUrl + '/api/k8s/GenerateAutomationScript_Install',
    GenerateAutomationScript_Install_Log: baseUrl + '/api/logs/stream',


    //servergroup
    servergroupAdd: baseUrl + '/api/cmdb/servergroup/add',
    servergroupList: baseUrl + '/api/cmdb/servergroup/list',
    servergrouplDetail: baseUrl + '/api/cmdb/servergroup/detail',
    servergroupUpdate: baseUrl + '/api/cmdb/servergroup/update',
    servergroupDelete: baseUrl + '/api/cmdb/servergroup/delete',
    //server
    serverAdd: baseUrl + '/api/cmdb/ssh/createserver',
    serverList: baseUrl + '/api/cmdb/server/list',
    serverDetail: baseUrl + '/api/cmdb/server/detail',
    serverUpdate: baseUrl + '/api/cmdb/server/update',
    syncdate: baseUrl + '/api/cmdb/ssh/sync',
    serverDelete: baseUrl + '/api/cmdb/server/delete',
    //凭据credential
    credentialAdd: baseUrl + '/api/cmdb/credential/add',
    credentialList: baseUrl + '/api/cmdb/credential/list',
    credentialDetail: baseUrl + '/api/cmdb/credential/detail',
    credentialUpdate: baseUrl + '/api/cmdb/credential/update',
    credentialDelete: baseUrl + '/api/cmdb/credential/delete',
    //pv
    k8sPvList: baseUrl + '/api/k8s/persistentvolume',
    k8sPvDetail: baseUrl + '/api/k8s/persistentvolume/detail',
    k8spvDel: baseUrl + '/api/k8s/persistentvolume/del',

    //pvc
    k8sPvcList: baseUrl + '/api/k8s/persistentvolumeclaims',
    k8sPvcCreate: baseUrl + '/api/k8s/persistentvolumeclaim/create',
    k8sPvcDetail: baseUrl + '/api/k8s/persistentvolumeclaim/detail',
    k8sPvcUpdate: baseUrl + '/api/k8s/persistentvolumeclaim/update',
    k8sPvcDel: baseUrl + '/api/k8s/persistentvolumeclaim/del',
    //git_data
    gitdata: baseUrl + '/api/git/list',
    branchedata: baseUrl + '/api/git/branchList',
    gitadd: baseUrl + '/api/git/add',
    gitupdate: baseUrl + '/api/git/update',
    // jenkins_data
    jenkinsgetjobs: baseUrl + `/api/jenkins/jobs`,
    jenkinsjobrun: baseUrl + `/api/jenkins/runjob`,
    jenkinsjobstop: baseUrl + `/api/jenkins/stopjob`,
    jenkinsnodes: baseUrl + '/api/jenkins/nodes',
    jenkinsjobadd: baseUrl + '/api/jenkins/createjob',
    jenkinsgetconfig: baseUrl + `/api/jenkins/getconfig`,
    jenkinsupdateconfig: baseUrl + `/api/jenkins/updateconfig`,
    jenkinsdeletejob: baseUrl + `/api/jenkins/deletejob`,
    jenkinsjoblisturl: baseUrl + `/api/jenkins/joblist`,
    jenkinsviews: baseUrl + `/api/jenkins/views`,
    k8sYamlList: baseUrl + '/api/jenkins/yamllist',

    //harbor
    harbor_projects: baseUrl + `/api/harbor/projects`,
    harbor_prepositories: baseUrl + `/api/harbor/prepositories`,
    harbor_images_list: baseUrl + `/api/harbor/images/version`,

    //项目管理
    cicd_projects: baseUrl + `/api/cicd/projects`,
    getlistapps: baseUrl + `/api/cicd/projectslist`,
    runapps: baseUrl + `/api/cicd/runapps`,
    delete_pips: baseUrl + `/api/cicd/deleteapps`,

    //头像上传
    avatar_jpg: baseUrl + `/api/upload/avatar`,




    //编辑器配置
    cmOptions: {
        // 语言及语法模式
        mode: 'text/yaml',
        // 主题
        theme: 'idea',
        // 显示行数
        lineNumbers: true,
        smartIndent: true, //智能缩进
        indentUnit: 4, // 智能缩进单元长度为 4 个空格
        styleActiveLine: true, // 显示选中行的样式
        matchBrackets: true, //每当光标位于匹配的方括号旁边时，都会使其高亮显示
        readOnly: false,
        lineWrapping: true //自动换行
    }
}


